package com.by.yz.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.by.yz.R;
import com.by.yz.activity.base.BaseActivity;
import com.by.yz.common.MFGT;

/**
 * Created by 123 on 2016/10/7.
 */
public class ManageCarActivity extends BaseActivity {

    private ImageView addCar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.manage_car_activity);
        setToolbarTitle("爱车管理");

        initView();
        initDatas();

    }

    private void initDatas() {

    }

    private void initView() {
        addCar=(ImageView) findViewById(R.id.mc_addCar);
        addCar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                MFGT.startActivity(ManageCarActivity.this, SelectBrandOfCarActivity.class);
            }
        });


    }

//    @Override
//    public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_main, menu); return true;
//        getMenuInflater().inflate(R.menu.mm, menu);
//        return true;
//    }

//    @Override
//    public boolean onOptionsItemSelected(MenuItem item) {
//        switch (item.getItemId()) {
//           case android.R.id.home:
//                Toast.makeText(this, "home", Toast.LENGTH_SHORT).show();
//                return true;
//            case R.id.m1:
//                Toast.makeText(this, "m1", Toast.LENGTH_SHORT).show();
//                break;
//            case R.id.m2:
//                Toast.makeText(this, "m2", Toast.LENGTH_SHORT).show();
//                break;
//
//        }
//        return super.onOptionsItemSelected(item);
//    }
}
